package com.nami.store.biz.friend.application;

import com.nami.store.api.response.friend.FriendDTO;
import com.nami.store.biz.friend.service.FriendDomainService;
import lombok.RequiredArgsConstructor;
import lombok.extern.slf4j.Slf4j;
import org.dromara.common.core.utils.StringUtils;
import org.springframework.stereotype.Service;

@Service
@Slf4j
@RequiredArgsConstructor
public class FriendAppServiceImpl implements FriendAppService{

    private final FriendDomainService friendDomainService;

    @Override
    public FriendDTO getFriendInfo(String from, String to) {
        if (StringUtils.isBlank(from) || StringUtils.isBlank(to)) {
            return null;
        }

        return friendDomainService.getFriendInfo(from, to);
    }
}
